package Builder;

/**
 * <p>Title Director</p>
 *
 * @author YiMing Liu
 * @date 2018/6/11 16:58
 * <p>Description:</p>
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct(){
        builder.makeTitle("打招呼");
        builder.makeContent("从早上到下午");
        builder.makeItems(new String[]{
                "早上好",
                "下午好",
        });
        builder.makeContent("晚上");
        builder.makeItems(new String[]{
                "到晚上了",
                "晚安咯",
                "再见！"
        });
        builder.close();
    }
}
